package com.stormragetech.teamwork.common.constant;

/**
 * description: //TODO
 *
 * @author: Xue Bin
 * @version: 1.0.0-SNAPSHOT
 */
public class Constants {

    // ------ 全局参数 ------

    public final static int UNLOCKED = 0;
    public final static int LOCKED = 1;
    public final static int LOGIN_EXPIRE = 5 * 60;

    public final static String COOKIE_NAME = "sr_tw_tk";
    public final static String RETURN_MSG = "ret";

    public final static String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";

    public final static String INT_TYPE = "int";
    public final static String STR_TYPE = "str";
    public final static String DATE_TYPE = "date";
    public final static String DOUBLE_TYPE = "doub";

    // ------ 安全参数 ------

    public static final String ENCODING = "UTF-8";
    public static final String AES_ALGORITHM = "AES";
    public static final Integer AES_BIT = 128;

    public static final String RSA_ALGORITHM = "RSA";
    public static final String SIGNATURE_ALGORITHM = "SHA1WithRSA";

    public static final Integer JAVA_RSA = 0;
    public static final Integer ANDROID_RSA = 1;

    public final static String PUB_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxeX6pRtpW/zKJ2bJEgFT" +
            "SXO2XM3JD9rMQZTm/KPL+igo4FXzPtD1mo1TZAO06gSX2X3Bj5EKOjO0hjGg9pJ7" +
            "BY6Nwxsp/TZWfqMXUrMKioa8nic9yYIEG33NkCOQ1r5zunNi7lmBW+iVWZGKJsf8" +
            "218fhV4Kj1ocTHxRhNCpFWtVlFve7xAtOrUbZYlZP+axxXijyqk4swmYMt4idhzl" +
            "il2oCEpSXxrv3rsLKfMSTTpALA1hoIr1CE10+m5wEScFAxslhFihS7j4r8EoMfLU" +
            "p9ClQbGgzbdM7AFsOiCNtAouBUhqW3132AGLpKdonLW1y0Mny+CtVMYVMGl6yCJU" +
            "GQIDAQAB";
    public final static String PRI_KEY = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDF5fqlG2lb/Mon" +
            "ZskSAVNJc7ZczckP2sxBlOb8o8v6KCjgVfM+0PWajVNkA7TqBJfZfcGPkQo6M7SG" +
            "MaD2knsFjo3DGyn9NlZ+oxdSswqKhryeJz3JggQbfc2QI5DWvnO6c2LuWYFb6JVZ" +
            "kYomx/zbXx+FXgqPWhxMfFGE0KkVa1WUW97vEC06tRtliVk/5rHFeKPKqTizCZgy" +
            "3iJ2HOWKXagISlJfGu/euwsp8xJNOkAsDWGgivUITXT6bnARJwUDGyWEWKFLuPiv" +
            "wSgx8tSn0KVBsaDNt0zsAWw6II20Ci4FSGpbfXfYAYukp2ictbXLQyfL4K1UxhUw" +
            "aXrIIlQZAgMBAAECggEBAJoMDpLNhrMzUQ1gxm38mB+aMj+FdNihodP/G9tXiaV9" +
            "82vFnCautDCNiHdXJ1HvJ2EGslCWP5bUvtai9UBa/+ZwdEuG7qWL0cKcI8CdXDw+" +
            "675Un5UnXxkjUYu9E7cF48IkpcMR609m+jMRxq+vh1YgcsH3VVMHevXS5AX2A1iG" +
            "qIZiKuDlRXmZKjgGBPFhQ/Ve6yv5msiTx448+sS+DO5/GADZCX3UBC7KH+/Xs5pg" +
            "HNrL/SvmMQQ6Gcci87LXl7xc8hKjKm8qe2yLshmBcPt2Oz8rAXhjfDipLJ6Tfh+A" +
            "IWEIfq3eC/PfGK/j9sbJHz5u+p1/h0mErlnqerCL5HECgYEA8QmcdjavGtrp5nl4" +
            "BMaDiALuQzlQbCUAGy7hm7dLC9YYDyvHqQ+XVrVnHO0/wCNuOL3ut3NZ6mmb/+Ab" +
            "K5Ne4GGpqnLuN/nHHMk3Faen2mf80ceQzywnjs9TA/GE8DgyWPv8cwET8RP3kVvJ" +
            "T45KvTwjZ9Jc23ITbTE5yVp6BwUCgYEA0i7VBVX3xPmlgFvYa2UeOjN+iWadE7N0" +
            "VrjcwGKSg1/gdYyPsl/AC/EwP4A7NbCkANTumzP213Pyum6hmK0yWVTO10SsuHwG" +
            "+OpNZmRl89tRdiSQEVG6bw+IIz7TtE+v8ZLYKMKHoEdDTAey50mplP8eGUPRU3QW" +
            "n4Nf8cQEPQUCgYEA5VeExMHxSHck+MN42+paek53kAT3rX5jJHot9fCn+kIiMEUy" +
            "u3x3PexqiQ6AivvrQxgNDAY4dp837HW6xHJ7YrnqKqEiYqZJuu0FeZhFUL2Cw8PD" +
            "2CumE+7WiTkDiWGfHiXdJTvQUqDx/R+9YvH70SRod7+j1LUtIMcmuZxZ4VUCgYAG" +
            "/c/QMZ/gSX2b23JDgEWVIglfgK5Q7XM9P0D4lU7SV+obfuV4xX6Z5xf3xMgzbQDH" +
            "lk2pk/zuBclZMjzl2z0Fg7CtsHceW+HPfdu9QDGz/uOizmyMZu+Qqi+ZHInmQZBU" +
            "tNHD6VShnD081jS5RNYDQsk5hev8nqvx+mjCngaWEQKBgCuhPkpWtsfuiqQnOjqu" +
            "cIB35KVbc1AEXmYWV4gJzHk6ktkFEpZHn8xKWcZJUpfRaU5N1AphQMVK5neYcsn+" +
            "5z1O+hMhgwVJJTVl5lpWrbzozZqydu5h1T7eOR20EaglgrrF5jc1GzA8v0LTg/z9" +
            "J/BukqwFdafEmdreGwhhiHw0";

    // ------ 返回参数 ------

    public final static String RETURN_SUCCESS_CODE = "0000";
    public final static String RETURN_FAILED_CODE = "9999";

    // ------ mongo 参数 ------

    public final static String TW_USER_COL = "tw_user";
    public final static String TW_POS_COL = "tw_pos";
    public final static String TW_USER_POS_COL = "tw_user_pos";

    // ------ 异常参数 ------

    public final static String SERVER_ERR = "操作失败，请您稍后尝试";

    public final static String REDIS_ERR_CODE = "10001";
    public final static String MONGO_ERR_CODE = "10002";
    public final static String Mysql_ERR_CODE = "10003";

    public final static String CRYPT_ERR_CODE = "10004";
    public final static String CONVERT_ERR_CODE = "10005";

    public final static String USER_NOEX_CODE = "20001";
    public final static String USER_NOEX_MSG = "用户不存在";

    public final static String USER_EX_CODE = "20002";
    public final static String USER_EX_MSG = "用户名已存在";

    public final static String PASS_ERR_CODE = "20003";
    public final static String PASS_ERR_MSG = "用户名密码错误";


}
